import { createApp } from 'vue'
import ElementPlus from 'element-plus'

import '@/assets/style/index.scss'
import '@/assets/style/reset.scss'
import DataVVue3 from '@kjgl77/datav-vue3'
import VueViewer, { component as Viewer } from 'v-viewer'

import VueCountup from 'vue-countup-v3'

import router from '@/router/index'
// import 'animate.css'
import '@/assets/style/theme.scss'
import '@/assets/icon/iconfont.css'
import { setDomFontSize } from '@/utils/resize'
// 全局组件
// import gloalComponent from '@/components'
// svg
import 'virtual:svg-icons-register'

// viewer图片插件
import 'viewerjs/dist/viewer.css'

import 'element-plus/dist/index.css'

import 'leaflet/dist/leaflet.css'

import 'virtual:uno.css'


import App from '@/App.vue'
import pinia from '@/stores'

setDomFontSize()




VueViewer.setDefaults({
  title: false, // 当前图片标题
  toolbar: true, // 底部工具栏
})
const app: any = createApp(App)
app.use(pinia)
app.use(router)
app.use(ElementPlus)
// app.use(gloalComponent)
app.use(VueViewer)
app.component('VueCountup', VueCountup)
app.component('Viewer', Viewer)
app.use(DataVVue3)
app.mount('#app')
